package com.liran.entity;

/**
 * @author: whh
 * @Date: 2024/4/23
 * @Description:
 */
public enum SourceEnum {
    //百度
    BAIDU_PAID_SEARCH("百度搜索推广 Baidu paid search", "百度搜索推广", "百度Baidu", "百度"),
    BAIDU_ORGANIC_SEARCH("百度自然搜索Baidu organic search", "百度自然搜索", "百度Baidu", "百度"),
    BAIDU_OTHER_SEARCH("其他搜索引擎来源Other search engines", "其他搜索引擎来源", "百度Baidu", "百度"),
    BAIDU_NO_SEARCH("其他: 非搜索引擎来源", "非搜索引擎来源", "百度Baidu", "百度"),
    BAIDU_WEB_NOTE("网站留言", "网站留言", "百度Baidu", "百度"),
    BAIDU_DIRECT("直接访问Direct", "直接访问", "百度Baidu", "百度"),
    //字节
    TIK_TOK("抖音Tik Tok", "抖音", "字节Bytedance", "字节"),
    //在线聊天
    DIRECT("直接访问Direct", "直接访问", "在线聊天Live chat", "在线聊天"),
    GOOGLE_ORIGINAL_SEARCH("谷歌自然搜索Google organic search", "谷歌自然搜索", "在线聊天Live chat", "在线聊天"),
    GOOGLE_ADVERTISE("谷歌广告Google paid search", "谷歌广告", "在线聊天Live chat", "在线聊天"),
    OUTSIDE_LINK("外链 Referral", "外链", "在线聊天Live chat", "在线聊天"),
    GOOGLE_DIRECT("直接访问Direct", "直接访问", "在线聊天Live chat", "在线聊天"),
    GOOGLE_APPS("Linkedin/Facebook/Twitter/INS", "Linkedin/Facebook/Twitter/INS", "在线聊天Live chat", "在线聊天"),
    //电话咨询
    PHONE_CALL("电话咨询", "电话咨询", "电话咨询Calls", "电话咨询"),
    //展会
    SHOW("展会", "展会", "展会Exhibition", "展会"),
    //第三方平台
    QIAN_LI_MA("千里马", "千里马", "第三方平台Third Party Platforms（千里马/阿里巴巴/中国制造网）", "第三方平台"),
    YI_QI_XIN_XI("其他: 仪器信息网", "仪器信息网", "第三方平台Third Party Platforms（千里马/阿里巴巴/中国制造网）", "第三方平台"),
    CHINA_PRODUCTION_WEB("中国制造网", "中国制造网", "第三方平台Third Party Platforms（千里马/阿里巴巴/中国制造网）", "第三方平台"),
    //ireal官网
    IREAL_BAIDU_ORGANIC_SEARCH("百度自然搜索Baidu organic search", "百度自然搜索", "ireal官网", "ireal官网"),
    IREAL_OTHER_SEARCH("其他搜索引擎来源Other search engines", "其他搜索引擎来源", "ireal官网", "ireal官网"),
    IREAL_PAID_SEARCH("百度搜索推广 Baidu paid search", "百度搜索推广", "ireal官网", "ireal官网"),
    IREAL_BILIBILI("其他: B站", "B站", "ireal官网", "ireal官网"),
    IREAL_DIRECT("直接访问Direct", "直接访问", "ireal官网", "ireal官网"),
    IREAL_Linkedin("Linkedin/Facebook/Twitter/INS", "Linkedin/Facebook/Twitter/INS", "ireal官网", "ireal官网"),
    IREAL_谷歌广告Google_paid_search("谷歌广告Google paid search", "谷歌广告", "ireal官网", "ireal官网"),
    IREAL_媒体文章Media_articles("媒体文章Media articles", "媒体文章", "ireal官网", "ireal官网"),
    IREAL_代理商介绍Reseller_introdcution("代理商介绍Reseller introdcution", "代理商介绍", "ireal官网", "ireal官网"),
    IREAL_谷歌自然搜索Google_organic_search("谷歌自然搜索Google organic search", "谷歌自然搜索", "ireal官网", "ireal官网"),
    //公司邮箱
    COMPANY_MAIL("公司邮箱", "公司邮箱", "Market mailbox", "公司邮箱"),
    //网站表单
    WEBSIDE_APPS("Linkedin/Facebook/Twitter/INS", "Linkedin/Facebook/Twitter/INS", "网站表单Site forms", "网站表单"),
    WEBSIDE_Offline_Event("其他：Offline Events", "Offline Events", "网站表单Site forms", "网站表单"),
    WEBSIDE_ORIGINAL_SEARCH("谷歌自然搜索Google organic search", "谷歌自然搜索", "网站表单Site forms", "网站表单"),
    WEBSIDE_ADVERTISE("谷歌广告Google paid search", "谷歌广告", "网站表单Site forms", "网站表单"),
    WEBSIDE_MEDIA_ARTICLE("媒体文章Media articles", "媒体文章", "网站表单Site forms", "网站表单"),
    RESELLER_INTRODCUTION("代理商介绍Reseller introdcution", "代理人介绍", "网站表单Site forms", "网站表单"),
    OVERSEAS_SOCIAL_MEDIA("Linkedin/Facebook/Twitter/INS", "Linkedin/Facebook/Twitter/INS", "海外社媒Overseas social media", "海外社媒"),
    //垂直媒体
    VERTICAL_MEDIA("Aniwaa", "Aniwaa", "垂直媒体Vertical media", "垂直媒体"),

    INSIDE_TOTAL("","","","总计"),

    OUTSIDE_TOTAL("","","","总计"),

            ;

    String originalSource;

    String targetSource;

    String originalPlatform;

    String targetPlatform;

    SourceEnum(String originalSource, String targetSource, String originalPlatform, String targetPlatform) {
        this.originalSource = originalSource;
        this.targetSource = targetSource;
        this.originalPlatform = originalPlatform;
        this.targetPlatform = targetPlatform;
    }

    public String getOriginalSource() {
        return originalSource;
    }

    public void setOriginalSource(String originalSource) {
        this.originalSource = originalSource;
    }

    public String getTargetSource() {
        return targetSource;
    }

    public void setTargetSource(String targetSource) {
        this.targetSource = targetSource;
    }

    public String getOriginalPlatform() {
        return originalPlatform;
    }

    public void setOriginalPlatform(String originalPlatform) {
        this.originalPlatform = originalPlatform;
    }

    public String getTargetPlatform() {
        return targetPlatform;
    }

    public void setTargetPlatform(String targetPlatform) {
        this.targetPlatform = targetPlatform;
    }

    public static SourceEnum getByOriginal(String originalSource, String originalPlatform) {
        for (SourceEnum sourceEnum : SourceEnum.values()) {
            if (sourceEnum.getOriginalSource().equals(originalSource) && sourceEnum.getOriginalPlatform().equals(originalPlatform)) {
                return sourceEnum;
            }
        }
        return null;
    }
}
